package demo.huodongbaoming.repository;

import demo.huodongbaoming.entity.Activity;
import demo.huodongbaoming.entity.ActivityCategory;
import demo.huodongbaoming.entity.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ActivityRepository extends JpaRepository<Activity, Long> {
    List<Activity> findByIsActiveTrue();
    List<Activity> findByCreator(User creator);
    List<Activity> findByCategory(ActivityCategory category);
} 